﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace mbhxnaengine.Code.Game
{
    // Structure used for storing the information about a level.
    //
    class GameLevel
    {
        // The dimensions of the board.
        //
        public const int mBoardWidth = 13;
        public const int mBoardHeight = 17;

        // An array of all the cell states.
        //
        private int[,] mCellStates;

        // Constructor
        //
        public GameLevel()
        {
            // Creating a default board for now.
            //
            mCellStates = new int[,]
            {
                { 0,0,0,0,0,0,1,0,0,0,0,0,0  },
                {  0,0,0,0,0,1,1,0,0,0,0,0,0 },
                { 0,0,0,0,0,1,1,1,0,0,0,0,0  },
                {  0,0,0,0,1,1,1,1,0,0,0,0,0 },
                { 6,6,6,6,7,7,7,7,7,2,2,2,2  },
                {  6,6,6,7,7,7,7,7,7,2,2,2,0 },
                { 0,6,6,7,7,7,7,7,7,7,2,2,0  },
                {  0,6,7,7,7,7,7,7,7,7,2,0,0 },
                { 0,0,7,7,7,7,7,7,7,7,7,0,0  },
                {  0,5,7,7,7,7,7,7,7,7,3,0,0 },
                { 0,5,5,7,7,7,7,7,7,7,3,3,0  },
                {  5,5,5,7,7,7,7,7,7,3,3,3,0 },
                { 5,5,5,5,7,7,7,7,7,3,3,3,3  },
                {  0,0,0,0,4,4,4,4,0,0,0,0,0 },
                { 0,0,0,0,0,4,4,4,0,0,0,0,0  },
                {  0,0,0,0,0,4,4,0,0,0,0,0,0 },
                { 0,0,0,0,0,0,4,0,0,0,0,0,0  },
            };
        }

        // Accessor to pCellStates property
        //
        public int[,] pCellStates
        {
            get
            {
                return mCellStates;
            }
        }
    }
}
